package com.wego.entity.domain;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import javax.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
    * 轮播图
    */
@Getter
@Setter
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "tb_carousel")
public class Carousel implements Serializable {
    /**
     * 编号
     */
    @Id
    @Column(name = "id")
    @GeneratedValue(generator = "JDBC")
    private Long id;

    /**
     * 名称
     */
    @Column(name = "`name`")
    private String name;

    /**
     * 图片
     */
    @Column(name = "pic")
    private String pic;

    /**
     * 超连接
     */
    @Column(name = "url")
    private String url;

    /**
     * 备注信息
     */
    @Column(name = "info")
    private String info;

    /**
     * 显示优先级
     */
    @Column(name = "priority")
    private Integer priority;

    /**
     * 状态  1可用  0不可用
     */
    @Column(name = "`state`")
    private int state;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @Column(name = "update_time")
    private LocalDateTime updateTime;
}